//
//  SHKViewController.m
//  YSSuperWebViewSDK
//
//  Created by 139994824@qq.com on 02/20/2020.
//  Copyright (c) 2020 139994824@qq.com. All rights reserved.
//

#import "SHKViewController.h"
#import <YSSuperWebViewSDK/YSSuperWebViewSDK.h>
@interface SHKViewController ()

@end

@implementation SHKViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    // 这里的widget://表示widget的根目录路径，加载widget以外地方的页面可以使用绝对路径
    NSString *url = @"widget://index.html";
    NSString *name = @"index";
    
//    NSString *url = @"https://www.baidu.com/";
    APIWindowContainer *windowContainer = [APIWindowContainer windowContainerWithAttribute:@{@"url":url, @"name":name}];
//    windowContainer.slidBackEnabled = YES;
//    windowContainer.slidBackType = SlidBackTypeFullPage;
    [windowContainer startLoad];
    [self.navigationController pushViewController:windowContainer animated:YES];
}
@end
